package com.twu.biblioteca.processor;

import com.twu.biblioteca.controller.BookController;
import com.twu.biblioteca.controller.LibraryController;
import com.twu.biblioteca.model.Item;
import com.twu.biblioteca.ui.BookView;

import java.util.List;

/**
 * Created by madhu on 2/5/14.
 */
public class ListBooksMenuProcessor implements MenuProcessor {

    @Override
    public void processLibraryMenu(LibraryController libraryController) {
        List<Item> booksInStack = new BookController().getItemsInStack(libraryController.getLibrary().getBooks());
        new BookView().displayListOfBooksInStack(booksInStack);
    }

}
